<template>
    <div>
        <h1>这是搜索页组件{{$store.state.msg}}</h1>
        <h1>{{$store.getters.gettersInfo}}</h1>
        <button @click="getVuexfunc">获取Vuex函数</button>

    </div>
</template>
<script>
    export default {
        data(){
            return{
            }
        },
        methods:{
            getVuexfunc(){
                this.$store.commit("getinfo","参数");
            }
        }
    }
</script>
<style>

</style>